package com.googlecode.imanager.swing.form;

import javax.swing.JRadioButton;

import com.googlecode.imanager.client.bridge.form.IRadioButton;
import com.googlecode.imanager.client.form.RadioButton;
import com.googlecode.imanager.core.base.BridgeApplication;

/**
 * @author wellsantos@wellsantos.com
 * @since 0.01
 */
public class SwingRadioButton extends SwingInputCheck implements IRadioButton {

    public SwingRadioButton(BridgeApplication bridge, RadioButton source) {
        super(bridge, source);
    }

    @Override
    protected JRadioButton createTarget() {
        return new JRadioButton();
    }

    @Override
    public JRadioButton getTarget(){
        return (JRadioButton) target;
    }
    
    @Override
    public RadioButton getSource() {
        return (RadioButton) source;
    }

}
